﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ServiceModel.Web;
using System.Data.Services;
using System.Xml.Linq;
using System.ServiceModel;
using System.Linq.Expressions;
using WebApp.Data;
using WebApp.Domain;
using WebApp.Service;

namespace WebApp.Web
{
    public partial class WcfDataService : DataService<TempFileDbContext>
    {
        ////客户代码不能为空或新客户或NULL
        //[ChangeInterceptor("CustomerSet")]
        //public void OnCustomerChange(Customer customer, UpdateOperations action)
        //{
        //    if (action == UpdateOperations.Add || action == UpdateOperations.Change)
        //        if (string.IsNullOrEmpty(customer.CustomerNo))
        //            throw new DataServiceException("更新客户信息时客户编号不明确!");
        //}

    }
}